﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CommonHelper.Enum
{
    public class TemplateMessageResponse
    {
        public TemplateMessageResponse()
        {
            topcolor = "#FF0000";
        }
        /// <summary>
        /// 接收者微信OpenId
        /// </summary>
        public string touser { get; set; }
        /// <summary>
        /// 模板Id
        /// </summary>
        public string template_id { get; set; }
        /// <summary>
        /// 跳转url
        /// </summary>
        public string url { get; set; }
        /// <summary>
        /// 顶部颜色
        /// </summary>
        public string topcolor { get; set; }
        /// <summary>
        /// 具体模板数据
        /// </summary>
        public object data { get; set; }
    }

    public class TemplateDataItem
    {
        /// <summary>
        /// 项目值
        /// </summary>
        public string value { get; set; }
        /// <summary>
        /// 16进制颜色代码，如：#FF0000
        /// </summary>
        public string color { get; set; }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="v">value</param>
        /// <param name="c">color</param>
        public TemplateDataItem(string v, string c = "#173177")
        {
            value = v;
            color = c;
        }
    }
}
